home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / loa_and_the_island.swf / scripts / DefineSprite_772 / frame_12 / PlaceObject2_634_286 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-03-17  |  638b  |  24 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused == false)
  3.    {
  4.       play();
  5.       if(this.hitTest(_root.level.sprite._x + _root.level._x,_root.level.sprite._y + _root.level._y - 10,true) or this.hitTest(_root.level.sprite._x + _root.level._x,_root.level.sprite._y + _root.level._y - 50,true))
  6.       {
  7.          _global.blackkey = true;
  8.       }
  9.       if(_currentframe > 8 and _global.blackkey == false)
  10.       {
  11.          gotoAndStop(1);
  12.       }
  13.       if(_currentframe == _totalframes)
  14.       {
  15.          this.swapDepths(0);
  16.          removeMovieClip(this);
  17.       }
  18.    }
  19.    if(_root.paused == true)
  20.    {
  21.       stop();
  22.    }
  23. }
  24.